package com.boyu.backend;

import com.boyu.common.BaseController;
import com.boyu.common.model.Fuser;
import com.boyu.service.FuserService;
import com.jfinal.aop.Duang;
import com.jfinal.plugin.activerecord.Page;

/**
 * @author changan.hca
 * @date 2017/7/3
 */
public class _FuserController extends BaseController {
    protected FuserService fuserService = Duang.duang(FuserService.class);

    public void index() {
        int pageNo = getParaToInt(PAGE_NO, 1);
        Page<Fuser> userPage = fuserService.getFuserPage(pageNo);
        setAttr("fuserPage", userPage);
        setAttr(PAGE_NO, pageNo);
        render(INDEX_HTML);
    }
}